package main;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.ScrollPaneConstants;

public class Mainframe extends JFrame {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8941806085552456925L;
	JButton butt;

	public Mainframe() {
		initializeGUI();
		setSize(800, 600);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		setVisible(true);
	}

	void initializeGUI() {
		UtilityPanel middlePanel = new UtilityPanel();
		JTextArea inputField = new JTextArea(16, 64);
		JScrollPane inputFieldScroll = new JScrollPane(inputField);
		inputFieldScroll
				.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
		middlePanel.getTop().add(inputFieldScroll);

		butt = new JButton("Butt");

		middlePanel.getBottom().add(butt);
		add(middlePanel);
	}
}
